package com.yuandian.api.customer_perception.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 类说明: 告警周期柱状图vo
 *
 * @Date 2021/8/17 10:50
 * @Author User
 */
@Getter
@Setter
@ToString
public class HistoGramVo {

    /**
     * 时间标签
     */
    private String cycleTime;


    /**
     * 告警值
     */
    private Integer alarmCount;

    public static HistoGramVo build (String cycleTime, Integer alarmCount) {
        HistoGramVo vo = new HistoGramVo();
        vo.setCycleTime(cycleTime);
        vo.setAlarmCount(alarmCount);

        return vo;
    }

}
